package com._520it.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by 呆 on 2017/10/6.
 */
@Getter@Setter
public class Client {
    //客户状态status
    public static final Integer FORMAL_CLIENT = 1;//正式客户
    public static final Integer HIDDEN_CLIENT = 0;//潜在客户
    public static final Integer SOURCE_CLIENT = 2;//资源池客户


    private Long id;
    private String username; //账号名
    private String password;//密码


    private String realName;//真实姓名
    private String email;//邮箱
    private String qq;//QQ
    private String tel;//手机号
    private String address;//地址
    private Integer clientType;//客户类型
    private Integer idCardType;//证件类型
    private String idCardNumber;//证件号码
    private Integer applicant;//是否是投保人
    private String nation;//民族
    private String nativePlace;//籍贯
    private Integer marriage;//婚姻
    private Long inputUser;//录入人id
    private Long princiUser;//负责人id
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date inputTime;//录入时间
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date editTime;//最后一次修改时间
    private String job;//职业
    private String remark;//备注
    private String clientSource;//客户来源
    private String income;//收入
    private Integer status;//状态
    private String clientNumber;//客户代码
    private Integer clientLevel;//客户等级
    private Long applyBillId;//保单id

    private Employee princiEmployee;//负责人
    private Employee inputEmployee;//录入人
}
